<div class="row">
 
<small>
 
  <div class="span3 bs-docs-sidebar ">
 
 	<*include file="<*$controller*>/location.tpl"*>
  </div>
<*if !$groupid*>  
  <div class="span3"> 
        <table class="table table-bordered table-hover" style="cursor:pointer; margin-top:15px; margin-left:20px;" >
            <tr><th>机构名</th></tr>
            <*foreach from=$result item=item key=key*>
            <tr onclick="chooseit(<*$item.groupid*>)"><td><*$item.groupname*></td></tr>
            <*/foreach*>
        </table>
  </div>
<*else*> 
  <div class="span9" style="margin-top:20px;padding-left:30px;"><*$groupname*></div> 
  <div class="span9"> 
	  <form action="/<*$controller*>/<*$action*>/groupid/<*$groupid*>" method="get" >
      
            <div class="span3" style="float:left;">
                <select name="schoolid" id="schoolid" style=" float:left;width:300px; margin-top:20px; z-index:200;"> 
                    <option value="">---选择校区---</option> 
                    <*foreach from =$school item=a key=k*>
                    <option value="<*$a.schoolid*>" <*if $schoolid==$k*> selected<*/if*>><*$a.schoolname*></option> 
                    <*/foreach*>
                </select>
            </div>
            <div class="span3" style="float:left; margin-top:21px; padding-left:10px;">
                <button type="submit" class="btn btn-primary btn-small" >查询</button>
            </div>
      </form>
    <*if $schoolid*>
    <*if $statistics*>  
    <div style="clear:both;">
    <div style="padding-top:15px;">
    <div class="span9" style="color:#F00; font-size:14px;">获得总积分=采用照片+学期vip+年vip+推荐;&nbsp;&nbsp;&nbsp;剩余积分=获得总积分-订购消耗</div>
    <div class="span9" style="color:#F00; font-size:14px;">学校绩效积分：<*$performance*></div>
        <table class="table table-bordered table-hover" style="margin-left:30px;" >
            <tr><th>班级</th><th>照片积分</th><th>照片数</th><th>学期vip</th><th>年vip</th><th>推荐</th><th style="color:#F00; background-color:#ff0">获得总积分(+)</th><th>订购消耗(-)</th><th  style="color:#F00; background-color:#ff0">剩余积分</th><th>明细</th></tr>
            <*foreach from=$statistics item=item key=key*>
            <tr><td><*$item.classname*></td><td><*$item.credit_photo*></td><td><*$item.credit_photo/$credit_artice_photo*></td><td><*$item.credit_term*></td><td><*$item.credit_year*></td><td><*$item.credit_publicize*></td><td style="color:#F00; background-color:#ff0"><*$item.credit*></td><td><*$item.credit_orders*></td><td style="color:#F00; background-color:#ff0"><*$item.credit - $item.credit_orders*></td><td>
            <a onclick="window.location='/<*$controller*>/detailed/class_uid/<*$item.class_uid*>'" role="button" class="btn btn-small" data-toggle="modal"><img src="/images/detailed.png" width="15" /></a>	
            </td></tr>
            <*/foreach*>
        </table>
    </div> 
    </div>
    <*else*>
    <div style="clear:both; margin-left:30px; padding-top:20px;">数据为空！</div>    
    <*/if*>
    <*else*>
    <div style="clear:both; margin-left:30px; padding-top:20px;">请选择校区！</div>
    <*/if*>   
 </div>
<*/if*>
</small>
</div>



<script type="text/javascript">

function chooseit(adid)
{
   window.location='/<*$controller*>/statistics/groupid/'+adid;
}

function deleteit(adid)
{
  if(confirm("删除将不能恢复")){
   window.location='/<*$controller*>/delete/vid/'+adid;
  }
}

</script> 
